home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form ImpTbls
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "Import Tables"
- ClientHeight = 1560
- ClientLeft = 2280
- ClientTop = 3165
- ClientWidth = 6165
- ControlBox = 0 'False
- Height = 1965
- Left = 2220
- LinkTopic = "Form2"
- ScaleHeight = 1560
- ScaleWidth = 6165
- Top = 2820
- Width = 6285
- Begin CommandButton cCloseBtn
- Cancel = -1 'True
- Caption = "Close"
- Height = 375
- Left = 4920
- TabIndex = 2
- Top = 600
- Width = 1095
- End
- Begin CommandButton cImportBtn
- Caption = "Import"
- Default = -1 'True
- Enabled = 0 'False
- Height = 375
- Left = 4920
- TabIndex = 1
- Top = 120
- Width = 1095
- End
- Begin ListBox cTables
- Height = 1005
- Left = 120
- TabIndex = 0
- Tag = "OLS"
- Top = 480
- Width = 4695
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "&Tables in "
- Height = 255
- Left = 120
- TabIndex = 3
- Top = 120
- Width = 4575
- End
- Sub cCloseBtn_Click ()
- Unload Me
- End Sub
- Sub cImportBtn_Click ()
- Import (cTables)
- End Sub
- Sub cTables_Click ()
- cImportBtn.Enabled = True
- End Sub
- Sub cTables_DblClick ()
- Call cImportBtn_Click
- End Sub
- Sub Form_Load ()
- cTables.Clear
- For i = 0 To gImpDB.TableDefs.Count - 1
- If (gImpDB.TableDefs(i).Attributes And DB_SYSTEMOBJECT) = 0 Then
- cTables.AddItem gImpDB.TableDefs(i).Name
- End If
- Next
- End Sub
- Sub Form_Paint ()
- Outlines Me
- End Sub
-